import com.sun.xml.internal.ws.policy.privateutil.PolicyUtils;
//
import java.sql.Array;
import java.util.*;

class Student implements Comparable<Student> {
    public String name;
    public String classes;
    public double score;

    public Student(String name, String classes, double score) {
        this.name = name;
        this.classes = classes;
        this.score = score;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", classes='" + classes + '\'' +
                ", score=" + score +
                '}';
    }

    @Override
    public int compareTo(Student o) {
        return (int) (this.score-o.score);
    }
}



public class prog {
    private static void testMethod(){

        System.out.println("testMethod");

    }

    public static void main(String[] args) {

        ((prog)null).testMethod();

    }


    public static void main4(String[] args) {
        List<Integer> list=new ArrayList<Integer>();
        list.add(1);
        list.add(2);
        System.out.println(list.get(0));
        list.set(1,3);
        System.out.println(list);
    }







    public static void main3(String[] args) {
        String str1="welcome to bit";
        String str2="come";
        LinkedList<Character> ch=new LinkedList<Character>();
        for(int i=0;i<str1.length();i++){
            if(str2.contains(str1.charAt(i)+"")){
                continue;
            }
            ch.add(str1.charAt(i));
        }
        System.out.println(ch);
    }






    public static void main2 (String[] args) {
        LinkedList<Integer> i=new LinkedList<Integer>();
        i.add(70);
        i.add(90);
        i.add(60);
        i.add(100);
        Collections.sort(i);
        System.out.println(i);
    }







    public static void main1(String[] args) {
        LinkedList<Student> bit=new LinkedList<Student>();
        bit.add(new Student("张三","2班",90.7));
        bit.add(new Student("王五","3班",99));
        bit.add(new Student("李四","1班",87.9));
        for(Student x : bit){
            System.out.println(x);
        }
        Collections.sort(bit);
        for(Student x:bit){
            System.out.println(x);
        }
    }

}
